package com.lc.luzhengtang.conn;

import android.util.Log;

import com.google.gson.Gson;
import com.lc.luzhengtang.bean.CommenBean;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2017/4/17.
 */
@HttpInlet(Conn.GOODS_ADD_SHOP)
public class ConnAddShop extends BaseAsyPost<CommenBean> {

    public String goods_id, member_id, number, goodsattr,price;



  public ConnAddShop(String goods_id, String member_id, String number, String goodsattr, String price, AsyCallBack<CommenBean> asyCallBack) {
         super(asyCallBack);
         this.goods_id = goods_id;
         this.member_id = member_id;

         this.number = number;
         this.goodsattr = goodsattr;
         this.price = price;
     }

    @Override
    protected CommenBean parser(JSONObject object) throws Exception {
        Log.d(object.toString(), "aaaaaaaaaaaaaaaaa");

        TOAST = object.optString("message");

        Gson gson = new Gson();

        CommenBean loginBean = new CommenBean();

        loginBean = gson.fromJson(object.toString(), CommenBean.class);


        return loginBean;


    }
}



